/*
 * @Author: xiaosihan 
 * @Date: 2021-05-09 11:11:58 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2021-05-09 12:57:38
 */
import emiter from "@emiter";
import { createHashHistory } from "history";

// js 也可以引用
const mixin_history = createHashHistory({ basename: "basename" });

// 当路由发生改变时 分发事件
mixin_history.listen(() => {
    emiter.emit(emiter.HISTORY_CHANGE, mixin_history);
});

export default mixin_history;